package com.hgkj.cloud.base.service;

import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.domain.TenantSchemes;

import java.util.List;
import java.util.Map;

public interface TenantSchemesService {
    int deleteByPrimaryKey(Long id);

    int insert(TenantSchemes record);

    int insertSelective(TenantSchemes record);

    TenantSchemes selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TenantSchemes record);

    int updateByPrimaryKey(TenantSchemes record);

    TenantSchemes getSchemeByMap(Map<String, Object> map);

    List<TenantSchemes> listUserSchemeByUser_id(PageInfo pi, Map<String, Object> map);

    List<TenantSchemes> listLatestSchemes(PageInfo pi, Map<String, Object> map);

    Long listLatestSchemesByCount(Map<String, Object> map);

    List<TenantSchemes> listHistorySchemes(PageInfo pi, Map<String, Object> map);

    Long listHistorySchemesCount(Map<String, Object> map);

    Long listAllSchemesCount(Map<String, Object> map);

    Long listSchemeJoinUserCount(Map<String, Object> map);

    List<Map<String, Object>> statSchemeQuestion(Map<String, Object> map);

    //base gegin

    //base end
}
